package so.sao.code.service.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import so.sao.code.service.domain.entity.TagTask;
import so.sao.code.service.infrastructure.enums.TASK_STATUS;

import java.util.List;

/**
 * Created by Administrator on 2017/10/10.
 */
public interface TagTaskDao extends JpaRepository<TagTask, Long> {
    TagTask findByPayload(String payload);
    TagTask findByGuid(String guid);

    List<TagTask> findByTypeAndStatus(String type, TASK_STATUS status);
}
